//
//  frmSettingsController.h
//  jRSSReader
//
//  Created by Jodynek on 6/7/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

extern NSString * const sUserName;
extern NSString * const sPassword;
extern NSString * const iShiftDelay;
extern NSString * const iRefreshDelay;

extern NSString * const prefSavedNotification;

@interface frmSettingsController : NSWindowController
{
  NSString * btnAutoLogTitle;
}
@property (weak) IBOutlet NSTextField *edtUserName;
@property (weak) IBOutlet NSSecureTextField *edtPassword;
@property (weak) IBOutlet NSTextField *edtShiftDelay;
@property (weak) IBOutlet NSTextField *edtRefreshDelay;
- (IBAction)btnSaveClicked:(id)sender;

@property (weak) IBOutlet NSButton *btnAutoLogon;
- (IBAction)btnAutologonClicked:(id)sender;
- (void)enableLoginItemWithLoginItemsReference:(LSSharedFileListRef )theLoginItemsRefs ForPath:(NSString *)appPath;
- (void)disableLoginItemWithLoginItemsReference:(LSSharedFileListRef )theLoginItemsRefs ForPath:(NSString *)appPath;
- (BOOL)loginItemExistsWithLoginItemReference:(LSSharedFileListRef)theLoginItemsRefs ForPath:(NSString *)appPath;

+ (NSString *)userName;
+ (void)setUserName:(NSString *)sUserName;
+ (NSString *)password;
+ (void)setPassword:(NSString *)sPassword;
+ (NSString *)shiftDelay;
+ (void)setShiftDelay:(NSString *)iShiftDelay;
+ (NSString *)refreshDelay;
+ (void)setRefreshDelay:(NSString *)iRefreshDelay;

@end
